|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.agent.process.RAProcess
raar.agent.process.sensor.RASensor
raar.agent.process.sensor.RALightSensor
public class RALightSensor
Light sensor can detect a light source in the world.
| Field Summary |
|---|
| Fields inherited from class raar.agent.process.sensor.RASensor |
|---|
agent, output, outputName |
| Fields inherited from class raar.agent.process.RAProcess |
|---|
hasRun, inregister, outregister, register, sourceCode, statement |
| Fields inherited from interface raar.agent.process.RAWorldDependentProcess |
|---|
NO_OBJECT_DEFINED |
| Fields inherited from interface raar.agent.process.RAAgentDependentProcess |
|---|
NO_AGENT_DEFINED |
| Constructor Summary | |
|---|---|
RALightSensor()
Default constructor. |
|
RALightSensor(RAAgent agent)
Construct. |
|
| Method Summary | |
|---|---|
java.lang.String |
explain()
Provide a description of the sensor. |
java.awt.Color |
getColor()
Get color. |
java.lang.String |
getLightSource()
Get light source the sensor responds to. |
java.lang.String |
getProcessableName()
Return the name of the object/class that this sensor can see. |
boolean |
isProcessable(RAWorldObject obj)
Return whether the object given can be seen by the sensor, with the current settings. |
boolean |
isSuitable(RAWorldObject obj)
Return whether the object given can be seen by the sensor, independent of any settings. |
void |
run()
Run the sensor. |
void |
setLightSource(java.lang.String lightSource)
Set light source the sensor responds to. |
void |
setProcessableName(java.lang.String name)
Set the name of the object/class that this sensor can see. |
java.lang.String |
toString()
String representation. |
boolean |
usesClasses()
Return whether the sensor perceives classes (true) or specific objects (false). |
| Methods inherited from class raar.agent.process.sensor.RASensor |
|---|
acceptsInput, dumpRegisters, execute, get, getAgent, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput |
| Methods inherited from class raar.agent.process.RAProcess |
|---|
clone, getProcessName, getSourceCode, reset, setProcessName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RALightSensor()
public RALightSensor(RAAgent agent)
| Method Detail |
|---|
public void setLightSource(java.lang.String lightSource)
public java.lang.String getLightSource()
public java.awt.Color getColor()
getColor in class RASensor
public void run()
throws RAException
run in class RASensorRAExceptionpublic java.lang.String toString()
toString in class RASensorpublic java.lang.String explain()
explain in class RASensorpublic boolean isSuitable(RAWorldObject obj)
isSuitable in interface RAWorldDependentProcesspublic boolean isProcessable(RAWorldObject obj)
isProcessable in interface RAWorldDependentProcesspublic boolean usesClasses()
usesClasses in interface RAWorldDependentProcesspublic java.lang.String getProcessableName()
getProcessableName in interface RAWorldDependentProcesspublic void setProcessableName(java.lang.String name)
setProcessableName in interface RAWorldDependentProcess
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||